package com.lj.file;

import com.lj.common.module.ModuleInfo;
import org.dromara.x.file.storage.spring.EnableFileStorage;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author luojing
 * @since 2025/6/26 15:58
 */
@Configuration
@ComponentScan("com.lj.file")
@MapperScan("com.lj.file.mapper")
@EnableFileStorage
public class FileAutoConfiguration {

    @Bean
    public ModuleInfo fileModuleInfo() {
        return new ModuleInfo().setModuleName("file");
    }
}